package com.lhm.entity;

public class Orditem {
    private int itemid; //订单明细编号
    private int ordid; //订单编号
    private int bookid; //书本编号
    private int num;  //购买数量
    private double price;  //购买价格

    public int getItemid() {
        return itemid;
    }

    public void setItemid(int itemid) {
        this.itemid = itemid;
    }

    public int getOrdid() {
        return ordid;
    }

    public void setOrdid(int ordid) {
        this.ordid = ordid;
    }

    public int getBookid() {
        return bookid;
    }

    public void setBookid(int bookid) {
        this.bookid = bookid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Orditem(int itemid, int ordid, int bookid, int num, double price) {
        this.itemid = itemid;
        this.ordid = ordid;
        this.bookid = bookid;
        this.num = num;
        this.price = price;
    }

    public Orditem() {
    }

    @Override
    public String toString() {
        return "Orditem{" +
                "itemid=" + itemid +
                ", ordid=" + ordid +
                ", bookid=" + bookid +
                ", num=" + num +
                ", price=" + price +
                '}';
    }


}
